package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField("user_id")
    @TableId(type = IdType.AUTO)
    private Long userId;

    @TableField("phone")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @TableField("password")
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField("nickname")
    @ApiModelProperty(value = "昵称")
    private String nickName;
    @TableField("sex")
    @ApiModelProperty(value = "性别")
    private Integer sex;

    @TableField("age")
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @TableField("sign")
    @ApiModelProperty(value = "个性签名")
    private String sign;

    @TableField("avatar")
    @ApiModelProperty(value = "头像")
    private String avatar;

    @TableField("location")
    @ApiModelProperty(value = "位置信息")
    private String location;

}
